body, div, ol, ul, h1, h2, h3, h4, h5, h6, p, th, td, dl, dd, hr, form, iframe, input, textarea, select, label, article, aside, footer, header, menu, nav, section, time, audio, video {
    margin: 0;
    padding: 0
}

address, cite, dfn, em, var, i {
    font-weight: 400;
    font-style: normal
}

blockquote {
    margin: 1em 40px
}

ul, ol, li {
    list-style: none
}

input:-moz-placeholder, textarea:-moz-placeholder {
    color: #999
}

input:-ms-input-placeholder, textarea:-ms-input-placeholder {
    color: #999
}

input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
    color: #999
}

input {
    outline: none
}

img {
    max-width: 100%;
    vertical-align: middle
}

a {
    color: #0088cc;
}

* {
    -webkit-tap-highlight-color: transparent;
}

html {
    font-family: sans-serif;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    height: 100%;
}

body {
    margin: 0
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
    display: block
}

audio, canvas, progress, video {
    display: inline-block;
    vertical-align: baseline
}

audio:not([controls]) {
    display: none;
    height: 0
}

[hidden], template {
    display: none
}

a {
    background-color: transparent;
    text-decoration: none;
}

a:active, a:hover, a:focus {
    outline: 0;
}

abbr[title] {
    border-bottom: 1px dotted
}

b, strong {
    font-weight: bold
}

dfn {
    font-style: italic
}

h1 {
    font-size: 2em;
    margin: .67em 0
}

mark {
    background: #ff0;
    color: #000
}

small {
    font-size: 80%
}

sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline
}

sup {
    top: -0.5em
}

sub {
    bottom: -0.25em
}

img {
    border: 0;
    -ms-interpolation-mode: bicubic;
}

svg:not(:root) {
    overflow: hidden
}

figure {
    margin: 1em 40px
}

hr {
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    height: 0
}

pre {
    overflow: auto;
    word-wrap: break-word
}

code, kbd, pre, samp {
    font-family: monospace, monospace;
    _font-family: 'courier new', monospace;
    font-size: 1em
}

button, input, optgroup, select, textarea {
    color: inherit;
    font: inherit;
    margin: 0;
}

button {
    overflow: visible;
    outline: none;
    border: none;
}

button, select {
    text-transform: none
}

button, html input[type="button"], input[type="reset"], input[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer
}

button[disabled], html input[disabled] {
    cursor: default
}

button::-moz-focus-inner, input[type="submit"]::-moz-focus-inner, input[type="button"]::-moz-focus-inner {
    border: 0;
    padding: 0
}

input {
    line-height: normal;
    border: none;
}

input[type="checkbox"], input[type="radio"] {
    box-sizing: border-box;
    padding: 0
}

input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button {
    height: auto
}

input[type="search"] {
    -webkit-appearance: textfield;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box
}

input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none
}

fieldset {
    border: 1px solid #c0c0c0;
    margin: 0 2px;
    padding: .35em .625em .75em
}

legend {
    border: 0;
    padding: 0
}

textarea {
    overflow: auto;
    vertical-align: top;
    resize: none;
    border: 0;
}

textarea:focus {
    outline: none;
}

optgroup {
    font-weight: bold
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

td, th {
    padding: 0;
    font-weight: normal;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
}

/* common css */
.clearfix:before, .clearfix:after {
    display: table;
    content: " "
}

.clearfix:after {
    clear: both
}

.clearfix {
    *zoom: 1;
}

.clear {
    height: 0;
    font-size: 0;
    clear: both
}

.hide {
    display: none !important;
}

.show {
    display: block !important;
}

/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar {
    width: 2px;
}

/*定义滑块*/
::-webkit-scrollbar-thumb {
    background-color: #ccc;
}

/*顶部公共样式*/
.top-head {
    padding: 1.2rem 1.8rem;
    height: 2.4rem;
    line-height: 2.4rem;
    background-color: #1A4EAB;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    position: relative;
}

.top-head .go-back {
    background: url("../images/go-back.png") no-repeat center;
    background-size: 50%;
    width: 2.4rem;
    height: 2.4rem;
    position: absolute;
    left: 1.2rem;
}

.top-head .refresh {
    position: absolute;
    right: 1.8rem;
    background-color: #fff;
    color: #173DCC;
    width: 5rem;
    height: 2.4rem;
    line-height: 2.2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border: 0.05rem solid #fff;
}

.top-head .logout {
    position: absolute;
    left: 1.8rem;
    background-color: #1A4EAB;
    color: #fff;
    width: 5rem;
    height: 2.4rem;
    line-height: 2.2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border: 0.05rem solid #fff;
}

/*空数据*/
.empty {
    position: fixed;
    top: calc((100vh - 3.2rem) / 2);
    left: calc((100vw - 4rem) / 2);;
    background: url("../images/empty.png") no-repeat top center;
    background-size: 100%;
    width: 4rem;
    height: 1.5rem;
    padding-top: 4rem;
    color: #fff;
    text-align: center;
    font-size: 1.2rem;
}

/*弹层*/
.layer-ask {
    width: 16rem !important;
    border: 1px solid #fff;
    background-color: #2770CC;
    color: #fff;
    font-size: 1.2rem;
    padding: 1rem 1.6rem 1.6rem 1.6rem;
}

.layer-ask .layui-m-layerbtn {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    background-color: #2770CC;
    border: none;
    height: auto;
}

.layer-ask .layui-m-layerbtn span {
    background-color: #fff;
    color: #173DCC;
    width: 4rem;
    height: 1.6rem;
    line-height: 1.6rem;
    border-radius: 0;
    font-weight: bold;
}

/*登陆*/
#login {
    height: 100%;
    background: #2873CC;
}

#login .container {
    display: flex;
    flex-flow: column;
}

#login .container .title {
    font-size: 1.5rem;
    color: #fff;
    height: 15rem;
    line-height: 15rem;
    text-align: center;
}

#login .container .input-container {
    display: flex;
    flex-flow: column;
    align-items: center;
}

#login .container .input-container .input-item {
    display: flex;
    align-items: center;
    justify-content: space-around;
    color: #fff;
    font-size: 1.2rem;
    width: 19rem;
    border: 1px solid #fff;
    padding: 0.65rem 0;
    margin-bottom: 2rem;
}

#login .container .input-container .input-item img {
    width: 2rem;
}

#login .container .input-container .input-item label {
    width: 4rem;
}

#login .container .input-container .input-item input {
    width: 11rem;
    background: #2873CC;
}

#login .container .input-container .input-item input::-webkit-input-placeholder {
    /* WebKit browsers 适配谷歌 */
    color: #93ADE5;
}

#login .container .login-button {
    width: 15.5rem;
    height: 2.35rem;
    line-height: 2.35rem;
    color: #173DCC;
    font-size: 1.2rem;
    font-weight: bold;
    background-color: #fff;
    margin: 0 auto;
}

/*柜组*/
#cabinet-group {
    height: 100%;
    background: #2873CC;
}

#cabinet-group .cabinet-group {
    padding: 2rem 1rem;
    display: flex;
    flex-flow: column;
}

#cabinet-group .cabinet-group .group-item {
    background-color: #439EFF;
    padding-bottom: 1.2rem;
    margin-bottom: 2.7rem;
}

#cabinet-group .cabinet-group .group-item h6 {
    margin: 0.65rem auto 1.15rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #004187;
    text-align: center;
}

#cabinet-group .cabinet-group .group-item .cabinet-list {
    display: flex;
    justify-content: space-around;
}

#cabinet-group .cabinet-group .group-item .cabinet-list li {
    display: flex;
    align-items: center;
}

#cabinet-group .cabinet-group .group-item .cabinet-list li .box {
    width: 1.2rem;
    height: 1.2rem;
    border: 1px solid #fff;
    margin-right: 0.4rem;
}

#cabinet-group .cabinet-group .group-item .cabinet-list li .box.free {
    background-color: #fff;
}

#cabinet-group .cabinet-group .group-item .cabinet-list li .box.exist {
    background-color: #0076FF;
}

#cabinet-group .cabinet-group .group-item .cabinet-list li .box.abnormal {
    background-color: #FF4D35;
}

#cabinet-group .cabinet-group .group-item .cabinet-list li .count {
    font-size: 1.2rem;
    color: #fff;
}

/*柜子列表*/
#cabinet-list {
    height: 100%;
    background: #2873CC;
}

#cabinet-list .instruction {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
}

#cabinet-list .instruction li {
    display: flex;
    align-items: center;
}

#cabinet-list .instruction li .box {
    width: 1.2rem;
    height: 1.2rem;
    border: 1px solid #fff;
    margin-right: 0.6rem;
}

#cabinet-list .instruction li .box.free {
    background-color: #fff;
}

#cabinet-list .instruction li .box.exist {
    background-color: #0076FF;
}

#cabinet-list .instruction li .box.abnormal {
    background-color: #FF4D35;
}

#cabinet-list .instruction li .count {
    font-size: 1.2rem;
    color: #fff;
}

#cabinet-list .list-container {
    padding: 0 1.6rem;
    width: calc(100vw - 2rem - 2rem);
    overflow: hidden;
}

#cabinet-list .list-container .list {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: calc(100vw - 1.6rem - 1.6rem + 1.5rem);
    overflow: hidden;
}

#cabinet-list .list-container .list li {
    width: 4rem;
    height: 4rem;
    font-size: 1.2rem;
    text-align: center;
    line-height: 4rem;
    margin-right: 1.5rem;
    margin-bottom: 2rem;
}

#cabinet-list .list-container .list li.free {
    background-color: #fff;
    color: #004187;
}

#cabinet-list .list-container .list li.exist {
    background-color: #0076FF;
    color: #fff;
}

#cabinet-list .list-container .list li.abnormal {
    background-color: #FF4D35;
    color: #fff;
}

/*柜子详情*/
#cabinet-detail {
    height: 100%;
    background: #2873CC;
}

#cabinet-detail .container .content-list {
    display: flex;
    flex-flow: column;
    padding: 2rem;
}

#cabinet-detail .container .content-list .content-item {
    display: flex;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    color: #fff;
}

#cabinet-detail .container .content-list .content-item .label {
    width: 6rem;
}

#cabinet-detail .container .content-list .content-item .value {
    width: calc(100vw - 2rem - 2rem - 6rem);
}

#cabinet-detail .container .button {
    position: fixed;
    bottom: 2rem;
    height: 2.4rem;
    width: 6rem;
    color: #173DCC;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

#cabinet-detail .container .left-button {
    left: calc((100vw - 6rem - 6rem) / 3);
}

#cabinet-detail .container .right-button {
    right: calc((100vw - 6rem - 6rem) / 3);
}